import {apiResquest} from '@/utils/Http.js'

// 查询字典
export const getDict = dictName => {
	const params = {
	    name:dictName,
	    page: 0,
	    size: 9999
	}
    return apiResquest({
      url: "/api/dictDetail",
      method: "get",
      data: params
    });
};

// 系统配置参数
export const getParams = params => {
  return apiResquest({
    url:'/api/params/list',
    method:'get',
    data:params
  });
}

// 系统提示信息
export const getTips = params => {
  return apiResquest({
    url:'/api/tips',
    method:'get',
    data:params
  });
}

// 统一下单
export const createPay = params => {
  return apiResquest({
    url:'/api/trade/create',
    method:'post',
    data:params
  });
}
// 支付宝支付状态查询
export const getPayStatusMY = params => {
  return apiResquest({
    url:'/api/trade/status',
    method:'get',
    data:params
  });
}